﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkLoadAdd.aspx.cs" Inherits="DBA.Web.AwardManage.WorkLoadAdd" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ Register Assembly="SqControls" Namespace="SqControls.SqVerification" TagPrefix="cc2" %>

<%@ Register Assembly="SqControls" Namespace="SqControls.SqJqueryManager" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="/Scripts/jquery-1.7.1.js" type="text/javascript"></script>
    <script src="/Scripts/lhgdialog/lhgdialog.js" type="text/javascript"></script>
    <script src="/Scripts/Public.js" type="text/javascript"></script>
    <script src="/Scripts/date/WdatePicker.js" type="text/javascript"></script>
    <link href="/Styles/CommonEdit.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript">
        var DG = frameElement.lhgDG;
        $(function () {
            DG.addBtn('obtn', '提 交', function () {
                if (validateControlsById("tbRoleEdit")) {
                    parent.alertMsg.confirm("是否确认执行保存?", {
                        okCall: function () {
                            Public.CallBack("lnkSave", "");
                        }
                    });
                }
            });
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function (sender, e) {
                if ($("#hdResult").val() == "1") {
                    //Public.OpertAlert("操作成功!", true, "AspNetPager1");
                    alert("操作成功!");
                    Public.GetParentWindow().RefreshChildWin();
                    Public.CloseWindow();
                    //DG.cannel();
                } else {
                    alert("操作失败,请重试!");
                }
            });

        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <cc1:JqueryManager ID="JqueryManager1" runat="server" SelectedVersion="None" SelectedControlScript="TextBox"
        VerificationManager="true"></cc1:JqueryManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="divTable" style="width: 600px;">
            <asp:Panel ID="pan_tab" runat="server">
                <table id="tbRoleEdit" cellspacing="0" cellpadding="0" style="width: 100%;">
                    <tr>
                        <td class="r_left">
                            年度：
                        </td>
                        <td>
                            <input class="in_sty required" id="txt_ws_year" type="text" runat="server" style="text-align:left;" onfocus="WdatePicker({'dateFmt':'yyyy'})"/><cc2:ValidateEmpty
                                ID="ValidateEmpty1" runat="server" ForeColor="Red" ControlID="txt_ws_year">*</cc2:ValidateEmpty>
                        </td>
                    </tr>                  
                     <tr>
                         <td class="r_left">
                             获奖者：</td>
                         <td>
                                 <input class="in_sty required" id="txt_ws_Name" type="text" runat="server" style="text-align:left;"/><cc2:ValidateEmpty
                                ID="ValidateEmpty2" runat="server" ForeColor="Red" ControlID="txt_ws_Name">*</cc2:ValidateEmpty></td>
                    </tr>
                     <tr>
                        <td class="r_left">
                            工作量：
                        </td>
                        <td>
                            <input class="in_sty required" id="txt_ws_WorkCount" type="text" runat="server" style="text-align:left;" /><cc2:ValidateEmpty
                                ID="ValidateEmpty3" runat="server" ForeColor="Red" ControlID="txt_ws_WorkCount">*</cc2:ValidateEmpty>
                        </td>
                    </tr>
                </table>
                </asp:Panel>
            </div>
            <div style="display:none;">
                <asp:LinkButton ID="lnkSave" runat="server" onclick="lnkSave_Click"></asp:LinkButton><asp:HiddenField ID="hdResult" runat="server" /></div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:HiddenField ID="hidID" runat="server" />
   
    </form>
</body>
</html>

